//导入 countReducer
import countReducer from "./slices/countSlice";
import zanReducer from "./slices/zanSlice";
import collReducer from './slices/collSlice';
import todoReducer from './slices/todoSlice';

import {configureStore} from '@reduxjs/toolkit'

//配置 store 对象
let store = configureStore({
  reducer: {
    count: countReducer,
    zan: zanReducer,
    coll: collReducer,
    todo: todoReducer
  },
  //如果控制台 trace 不显示, 可以添加如下配置
  //开发工具配置, 添加该配置可以在 redux 控制台查看 trace 信息
  devTools: true
});

//暴露
export default store;

